import http from '../commons/utils/axios-util';

/**
 * 仪表板类别
 */
export default class DashboardCategoryApi {
  public static REQUEST_PREFIX = 'visual/dashboardCategory/';

  static saveDashboardCategory(params: any) {
    return http.post(`${DashboardCategoryApi.REQUEST_PREFIX}saveDashboardCategory`, params);
  }

  static queryDashboardCategoryById(id: string) {
    return http.get(`${DashboardCategoryApi.REQUEST_PREFIX}queryDashboardCategoryById?id=` + id);
  }

  static updateDashboardCategoryById(params: any) {
    return http.put(`${DashboardCategoryApi.REQUEST_PREFIX}updateDashboardCategoryById`, params);
  }

  static queryDashboardCategoryList(params: any) {
    return http.post(`${DashboardCategoryApi.REQUEST_PREFIX}queryDashboardCategoryList`, params);
  }

  static deleteDashboardCategoryByIds(params: any) {
    return http.post(`${DashboardCategoryApi.REQUEST_PREFIX}deleteDashboardCategoryByIds`, params);
  }
}
